using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Collections.Generic;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using FutureOpen.Web.Pages;
using FutureOpen.Core;
using FutureOpen.Core.func;
using FutureOpen.Core.func.db;
using System.Text;

public partial class controls_OrgUsrs : System.Web.UI.UserControl
{
    private int orgid;
    private PageBase pbase;
    protected void Page_Load(object sender, EventArgs e)
    {
        pbase = (PageBase)this.Page;
        pbase.PageInit();

        if (!Page.IsPostBack)
        {
            LoadUsrs();
        }
    }

    public void LoadUsrs()
    {
        if (this.orgid > 0)
        {
            MyOrg myorg = new MyOrg();
            IList<Usr> usrs = myorg.GetHotUsrByOrg(8, this.orgid);
            this.dlUsrs.DataSource = usrs;
            this.dlUsrs.DataBind();
        }
        
    }
    public string GetUsrUrl(object obj)
    {
        return pbase.GetUsrUrl((Usr)obj);
    }
}
